from rest_framework.generics import  CreateAPIView

# Create your views here.
from rest_framework.permissions import IsAuthenticated

from .serializers import QuestionSerializer


class QuestionAdd( CreateAPIView):
    """
    发布问题
    """
    serializer_class = QuestionSerializer
    # permission_classes = [IsAuthenticated]  # 指明必须登录认证后才能访问

